
import apiHelper from './apiHelper';

class homeService {
	//请求：获得默认地址
	defaultAddress(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/a/q/default`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 ：办理条件
	condition(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/an/qc`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}
	
	//请求 ：确认订单
	confirmOrder(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/an/confirmOrder`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}
}
	
// 实例化后再导出
export default new homeService()